//
//  Complex0.hpp
//  Practice11
//
//  Created by 赵世杰 on 2020/7/26.
//  Copyright © 2020 zhaoshijie. All rights reserved.
//

#ifndef Complex0_hpp
#define Complex0_hpp

#include <stdio.h>
#include <iostream>

#endif /* Complex0_hpp */


using namespace std;

class Complex0
{
public:
    double x;
    double y;
    
    Complex0();
    Complex0(double xx,double yy);
    
    
    Complex0 operator + (const Complex0 & complex) const;
    Complex0 operator - (const Complex0 & complex) const;
    Complex0 operator * (const Complex0 & complex) const;
    Complex0 operator * (double n) const;
    friend Complex0 operator * (double n, const Complex0 & complex);
    
    friend std::istream & operator >>(std::istream & os , Complex0 &com);
    
    friend std::ostream & operator <<(std::ostream & os , const Complex0 &com);
    
};
